package com.aaa.backsystem.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author gyc
 * @since 2020-07-23
 */
@TableName("tbl_petrol_station")
@Data
public class PetrolStation extends Model<PetrolStation> {

    private static final long serialVersionUID = 1L;

    /**
     * 加油站Id
     */
    @TableId(value = "petrol_station_id", type = IdType.AUTO)
    private Integer petrolStationId;
    /**
     * 加油站名称
     */
    @TableField("petrol_station_name")
    private String petrolStationName;
    /**
     * 派出所id
     */
    @TableField("dept_id")
    private Integer deptId;
    /**
     * 性质（0中石化，1中石油，2社会民营）
     */
    private String nature;
    /**
     * 职工人数
     */
    @TableField("staff_amount")
    private Integer staffAmount;
    /**
     * 地理位置（经度，纬度）
     */
    @TableField("geographic_position")
    private String geographicPosition;
    /**
     * 加油站地址
     */
    private String site;
    /**
     * 加油机数量
     */
    @TableField("tanker_amount")
    private Integer tankerAmount;
    /**
     * 法人姓名
     */
    @TableField("legal_person_name")
    private String legalPersonName;
    /**
     * 法人身份证号
     */
    @TableField("legal_person_card")
    private String legalPersonCard;
    /**
     * 法人联系方式
     */
    @TableField("legal_person_phone")
    private String legalPersonPhone;
    /**
     * 保卫组织负责人
     */
    @TableField("defend_principal")
    private String defendPrincipal;
    /**
     * 保卫组织负联系电话
     */
    @TableField("defend_phone")
    private String defendPhone;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 加油站类型id
     */
    @TableField("pertol_station_type_id")
    private Integer pertolStationTypeId;

    /**
     * 加油站照片url
     */
    @TableField("pic")
    private String pic;

    @Override
    protected Serializable pkVal() {
        return this.petrolStationId;
    }

    @Override
    public String toString() {
        return "PetrolStation{" +
                "petrolStationId=" + petrolStationId +
                ", petrolStationName='" + petrolStationName + '\'' +
                ", deptId=" + deptId +
                ", nature='" + nature + '\'' +
                ", staffAmount=" + staffAmount +
                ", geographicPosition='" + geographicPosition + '\'' +
                ", site='" + site + '\'' +
                ", tankerAmount=" + tankerAmount +
                ", legalPersonName='" + legalPersonName + '\'' +
                ", legalPersonCard='" + legalPersonCard + '\'' +
                ", legalPersonPhone='" + legalPersonPhone + '\'' +
                ", defendPrincipal='" + defendPrincipal + '\'' +
                ", defendPhone='" + defendPhone + '\'' +
                ", status=" + status +
                ", pertolStationTypeId=" + pertolStationTypeId +
                '}';
    }
}
